package org.lanqiao.webfm.model;


import java.util.*;
import java.io.Serializable;
import java.sql.*;
import java.lang.reflect.*;

import javacommon.base.*;
import javacommon.ijdbc.*;
import javacommon.util.*;
import javacommon.web.page.*;

import org.lanqiao.webfm.model.*;

import org.slf4j.*;

/**
*@Author zhengwei
**/
public class OrdersMapper implements RowMapper<Orders>{
	public Orders mapRow(ResultSet rs) throws SQLException {
		Orders model = new Orders();
		model.setId(rs.getLong("ID"));
		model.setUserId(rs.getLong("USER_ID"));
		model.setEdate(rs.getDate("EDATE"));
		model.setAddress(rs.getString("ADDRESS"));
		model.setContactman(rs.getString("CONTACTMAN"));
		model.setPhonenumber(rs.getString("PHONENUMBER"));
		model.setPostcode(rs.getString("POSTCODE"));
		model.setTotal(rs.getLong("TOTAL"));
		model.setDealdate(rs.getDate("DEALDATE"));
		model.setStatus(rs.getString("STATUS"));
		model.setNote(rs.getString("NOTE"));
		return model;
	}
}